package com.sright.bcard.content.dal.dao.impl;

import com.sright.bcard.common.service.share.base.dao.BaseDAOImpl;
import com.sright.bcard.common.service.share.base.dao.BaseMapper;
import com.sright.bcard.content.dal.dao.FavoriteDAO;
import com.sright.bcard.content.dal.entity.FavoriteDO;
import com.sright.bcard.content.dal.mapper.FavoriteDOMapper;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

@Repository
public class FavoriteDAOImpl extends BaseDAOImpl<FavoriteDO> implements FavoriteDAO {

    @Resource
    private FavoriteDOMapper favoriteDOMapper;

    @Override
    protected BaseMapper<FavoriteDO> getObjMapper() {
        return favoriteDOMapper;
    }

    @Override
    public FavoriteDO selectByMemberIdAndEnterpriseId(Long memberId, Long enterpriseId) {
        return favoriteDOMapper.selectByMemberIdAndEnterpriseId(memberId,enterpriseId);
    }
}
